package ai.ls.springmvc.controller;

import ai.ls.springmvc.annotation.Autowired;
import ai.ls.springmvc.annotation.Controller;
import ai.ls.springmvc.annotation.RequestMapping;
import ai.ls.springmvc.service.TestService;

/**
 * @BelongsProject: Lspring
 * @BelongsPackage: ai.ls.springmvc.controller
 * @Author: ls
 * @CreateTime: 2020-12-29 15:36
 * @Description: 测试入口
 */
@Controller
@RequestMapping("/test")
public class TestController {
    @Autowired("/testService")
    TestService testService;

    @RequestMapping("/index")
    public String index() {
        return "test springMVC:" + testService.test();
    }
}
